public class circle{
    final static double PI = 3.14;
    public static void main(String[] args) {
        double r = 2;
        System.out.println("面积是："+area(r));
    }
    static double area(double r){
        double a;
        a = PI*r*r;
        return a;
    }
}